using System;
using System.Collections.Generic;
using UnityEngine;

namespace Voodoo.Sauce.Internal.CrossPromo.Mercury.Models
{
	[Serializable]
	public class MercuryWaterfall
	{
		public string id;

		public string name;

		public MercuryPromotedAsset[] promote_assets;

		public int first_time_videos_in_cache;

		public int buffer_videos;

		public string os_type;

		public string strategy_id;

		public string GetPromotedAssets()
		{
			List<string> list = new List<string>();
			for (int i = 0; i < promote_assets.Length; i++)
			{
				MercuryPromotedAsset mercuryPromotedAsset = promote_assets[i];
				string item = $"{i + 1}. {mercuryPromotedAsset.game.name}";
				list.Add(item);
			}
			return string.Join(", ", list);
		}

		public string ToJson()
		{
			return JsonUtility.ToJson(this);
		}
	}
}
